String was not recognized as a valid DateTime 您所在的位置:网站首页 format not recognized String was not recognized as a valid DateTime

String was not recognized as a valid DateTime

2023-05-20 17:04| 来源: 网络整理| 查看: 265

Hi @John , the error message indicates that the string '18.05.2023 18:24:14' is not recognized as a valid DateTime.

To resolve this issue, you can try using the toTimestamp function in the mapping data flow to convert the string to a timestamp with the correct format. The default pattern for toTimestamp is yyyy-[M]M-[d]d hh:mm:ss[.f...]. Since your date format is different, you can provide the appropriate format as an argument to the toTimestamp function.

Here's an example:

toTimestamp('18.05.2023 18:24:14', 'dd.MM.yyyy hh:mm:ss')

This should convert the string '18.05.2023 18:24:14' to a valid DateTime format that can be stored in the Oracle table. Make sure to adjust the format string according to your specific date format.

Please let me know if you have any questions and I can help you further.

If this answer helps you please mark "Accept Answer" so other users can reference it.

Thank you,

James



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有